import Vue from 'vue'
import VueRouter from 'vue-router'
import find from '../views/find.vue'
import findresult from '../views/findresult.vue'
import musiclist from '../views/musiclist.vue'
import alllist from '../views/alllist.vue'
import lyric from '../views/lyric.vue'
import mymusic from '../views/mymusic.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'find',
    component: find
  },
  {
    path: '/find',
    name: 'find',
    component: find
  },
  {
    path:'/findresult',
    name:'findresult',
    component:findresult
  },
  {
    path:'/musiclist',
    name:'musiclist',
    component:musiclist
  },
  {
    path:'/alllist',
    name:'alllist',
    component:alllist
  },
  {
    path:'/lyric',
    name:'lyric',
    component:lyric
  },
  {
    path:'/mymusic',
    component:mymusic
  }

]

const router = new VueRouter({
  routes
})

export default router
